﻿using System;
using System.Collections.Generic;

namespace Meqs.Entity
{
    [Serializable]
	public class DistributionSettingsSchool
	{
		public DistributionSettingsSchool()
		{
			m_RID = 0;
            m_ExamID = 0;
            //m_SchooltestID = 0;
			m_Name = null;
			m_Operator = 0;
			m_Num = 0;
			m_Grade = 0;
			m_Type = 0;

		}

		#region RID
		
		private int m_RID;
		
		public int RID
		{
			get { return m_RID; }
			set { m_RID = value; }
		}
		
		#endregion
        #region ExamID

        private int m_ExamID;

        public int ExamID
        {
            get { return m_ExamID; }
            set { m_ExamID = value; }
        }

        #endregion
		#region SubjectID
		
		private int m_SubjectID;
		
		public int SubjectID
		{
			get { return m_SubjectID; }
			set { m_SubjectID = value; }
		}
		
		#endregion
		
        //#region SchoolTestID
		
        //private int m_SchooltestID;
		
        //public int SchoolTestID
        //{
        //    get { return m_SchooltestID; }
        //    set { m_SchooltestID = value; }
        //}
		
        //#endregion
		
		#region Name
		
		private string m_Name;
		
		public string Name
		{
			get { return m_Name; }
			set { m_Name = value; }
		}
		
		#endregion
		
		#region Operator
		
		private int m_Operator;
		
		public int Operator
		{
			get { return m_Operator; }
			set { m_Operator = value; }
		}
		
		#endregion
		
		#region Num
		
		private int m_Num;
		
		public int Num
		{
			get { return m_Num; }
			set { m_Num = value; }
		}
		
		#endregion
		
		#region Grade
		
		private int m_Grade;
		
		public int Grade
		{
			get { return m_Grade; }
			set { m_Grade = value; }
		}
		
		#endregion
		
		#region Type
		
		private int m_Type;
		
		public int Type
		{
			get { return m_Type; }
			set { m_Type = value; }
		}
		
		#endregion

        #region SchoolMark

        private string m_SchoolMark;

        public string SchoolMark
        {
            get { return m_SchoolMark; }
            set { m_SchoolMark = value; }
        }

        #endregion
		
		#region Rewrite Equals and HashCode
		
		/// <summary>
		/// 
		/// </summary>
		public override bool Equals(object obj)
		{
			if( this == obj ) return true;
			if( ( obj == null ) || ( obj.GetType() != GetType() ) ) return false;
			DistributionSettingsSchool castObj = (DistributionSettingsSchool) obj;
			return ( castObj != null )
 && m_RID == castObj.RID;		}
		
		/// <summary>
		/// 用唯一值实现GetHashCode
		/// </summary>
		public override int GetHashCode()
		{
			int hash = 85;
			hash = hash * 85
 * m_RID.GetHashCode();			return hash;
		}
		
		#endregion
		
		
	}
}